package com.hzgj.bcl.soa.interceptor;

import com.hzgj.bcl.soa.Event;
import com.hzgj.bcl.soa.Interceptor;

/**
 * Created by ye.pan on 2015/5/13.
 */
public abstract class EventFliterInterceptor extends Interceptor {

    @Override
    public Object up(Event evt) {
        if (Event.REINVOKE == evt.getType()) {
            return up_int.up(evt);
        }
        return up0(evt);
    }

    @Override
    public Object down(Event evt) {
        if (Event.REINVOKE == evt.getType()) {
            return down_int.down(evt);
        }
        return down0(evt);
    }

    public abstract Object down0(Event evt);

    public abstract Object up0(Event evt);
}
